<?php echo $this->Form->create('Insumos', array('action' => 'insumos')); ?>
<div class="widget">
    <div class="whead"><h6>LISTADO DE INSUMOS</h6><div class="clear"></div></div>
    <div class="shownpars">
        <table cellpadding="0" cellspacing="0" border="0" class="dTable">
            <thead>
                <tr>
                    <th>Nro</th>
                    <th>Nombre</th>
                    <th>Marca</th>
                    <th>Categorias</th>
                    
                    <th>Acciones</th>
                </tr>
            </thead>
            <tbody>
                <?php $i = 1;?>
            <?php foreach ($insumos as $in): ?>
            
                <tr <?php echo fmod($i, 2) ? "class = bg" : "";?>>
                    <td><?php echo $i;  $i++;?></td>
                    <td><?php echo $in['Insumo']['nombre']; ?></td>
                    <td><?php echo $in['Insumo']['marca']; ?></td>
                    <td><?php echo $in['Categoria']['nombre']; ?></td>
                    <td>
                    <?php echo $this->Html->link($this->Html->image("iconos/edit.png", array("alt" =>'Editar', 'title' => 'Editar')), array('action' => 'modificar', $in['Insumo']['id']),array('escape' => false)); ?>
                    <?php echo $this->Html->link($this->Html->image("iconos/elim.png", array("alt" =>'Eliminar', 'title' => 'Eliminar')), array('action' => 'eliminar', $in['Insumo']['id']),array('escape' => false), 
                        ("Desea eliminar realmente??")); ?>
                    
                    <?php //echo $this->Html->link('EDITAR', array('action' => 'modificar', $in['Insumo']['id']), array('class' => 'inner_a')); ?>
                    <?php //echo $this->Html->link('ELIMINAR', array('action' => 'eliminar', $in['Insumo']['id']), array('class' => 'inner_a'), ('Desea realmente eliminar?')); ?>
                    </td>
                </tr>
            <?php endforeach; ?>                
            </tbody>
        </table>
    </div> 
</div> 

<?php echo $this->Html->link('INSERTAR NUEVO INSUMO',array('action'=>'insertar'),array('class'=>'buttonS bGreen'));?>